package com.chengzhi;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: ruanchengzhi
 * @create: 2020-06-19 10:27
 **/
@RefreshScope
@RestController
public class ConfigController {

    @Value("${config.temp:}")
    private String temp;

    @GetMapping("/test")
    public String test() {
        return temp;
    }
}
